﻿<?xml version="1.0" encoding="utf-8"?>
<xs:schema id="getUserProfileResponse"
    targetNamespace="Sherwood.SignOn"
    elementFormDefault="qualified"
    xmlns="Sherwood.SignOn"
    xmlns:xs="http://www.w3.org/2001/XMLSchema"
>

    <xs:complexType name="role">
        <xs:attribute name="name" type="xs:string"></xs:attribute>
        <xs:attribute name="source" type="xs:string"></xs:attribute>
    </xs:complexType>

    <xs:complexType name="attribute">
        <xs:attribute name="name" type="xs:string"></xs:attribute>
        <xs:attribute name="source" type="xs:string"></xs:attribute>
        <xs:attribute name="value" type="xs:string"></xs:attribute>
    </xs:complexType>

    <xs:complexType name="culture">
        <xs:attribute name="name" use="required" type="xs:string" />
        <xs:attribute name="priority" use="optional" type="xs:int" />
    </xs:complexType>

    <xs:element name="getUserProfileResponse">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="userAccountId" type="xs:string"/>
                <xs:element name="username" type="xs:string" minOccurs="0"/>
                <xs:element name="firstName" type="xs:string" minOccurs="0"/>
                <xs:element name="lastName" type="xs:string" minOccurs="0"/>
                <xs:element name="culture" minOccurs="0" maxOccurs="unbounded" type="culture" />
                <xs:element name="country" type="xs:string"  minOccurs="0"/>
                <xs:element name="dateOfBirth" type="xs:date" minOccurs="0"/>
                <xs:element name="gender" type="xs:integer"  minOccurs="0"/>
                <xs:element name="email" type="xs:string" minOccurs="0"/>
                <xs:element name="mobile" type="xs:string"  minOccurs="0"/>
                <xs:element name="globalUser" type="xs:boolean" default="false" />
                <xs:element name="role" type="role" maxOccurs="unbounded" minOccurs="0"></xs:element>
                <xs:element name="attribute" type="attribute" maxOccurs="unbounded" minOccurs="0"></xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>

</xs:schema>
